package be.castanea.client.services;

import be.castanea.client.services.util.GenericCommand;
import be.castanea.client.model.Self;

/**
 * Castanea
 * 2009
 * @author Geert van Leemputten, Steven Rymenans, Bart Van Hooydonck
 */
public class RemoveMob extends GenericCommand {

    @Override
    public void execute(float interpolation) {
        if (!event.getOriginator().equalsIgnoreCase(Self.getInstance().getName())) {
            getWorld().removeMob(event.getOriginator());
        }
    }
}
